package com.yang.webapi.module.service.impl;

import com.yang.service.api.ProductService;
import com.yang.service.api.ShopService;
import com.yang.service.model.dto.get.ShopGetDTO;
import com.yang.service.model.dto.post.ShopPostDTO;
import com.yang.service.model.dto.put.ShopPutDTO;
import com.yang.service.model.vo.ProductVO;
import com.yang.service.model.vo.ShopVO;
import com.yang.webapi.module.service.ProductWebService;
import com.yang.webapi.module.service.ShopWebService;
import com.zhy.base.service.page.PageResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by xin7k
 * Date: 2019/12/4 0004
 */
@Slf4j
@Service
public class ProductWebServiceImpl implements ProductWebService {
    @Autowired
    private ProductService productService;


    @Override
    public List<ProductVO> getAllProductByShopId(String shopId) {
        return productService.selectAllProductByShopId(shopId);
    }

    @Override
    public ProductVO getProductDetailsByProductId(String productId) {
        return productService.getProductDetailsByProductId(productId);
    }
}
